﻿using System.Collections.Generic;
using UnityEngine;

public class SwitchUIManager : MonoBehaviourSingleton<SwitchUIManager>
{
    [SerializeField] private List<GameObject> sceneUIList;

    public void SwitchUI(GameObject selectUI)
    {
        foreach (GameObject ui in sceneUIList)
        {
            ui.SetActive(ui == selectUI);
        }
    }
}